#ifndef IMAGELISTMODEL_H
#define IMAGELISTMODEL_H

#include <QAbstractListModel>
#include <QList>
#include <QImage>

class ImageListModel : public QAbstractListModel
{
    Q_OBJECT
public:
    ImageListModel(const QList<QImage> &images, QObject* parent = 0)
        : QAbstractListModel(parent), m_imageList(images) { }
    int rowCount(const QModelIndex &parent) const;
    QVariant data(const QModelIndex &index, int role) const;
    ~ImageListModel();
private:
    QList<QImage> m_imageList;
};

#endif // IMAGELISTMODEL_H
